using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// User_Link - 用户联系方式 - 对象继承类
    /// </summary>
    [MetadataType(typeof(UserLinkValidaTion))]
    public class UserLink : IUserLink<UserLink>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class UserLinkValidaTion
       {

     

        /// <summary>
        /// 联系ID
        /// </summary>
        [Display(Name ="联系ID")]
        [Required]
        [StringLength(36)]
        public String LinkId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 用户
        /// </summary>
        [Display(Name ="用户")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 类别
        /// </summary>
        [Display(Name ="类别")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.UserLink.Type Type
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name ="内容")]
        [StringLength(500)]
        public String Detailed
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
